import request from '../common/request'
//登录
export function login(data) {
    return request({
        url: '/admin.user/login',
        method: 'post',
        data: data
    })
}
//登录后可选择的国家
export function getMeAddress(data) {
    return request({
        url: '/admin.user/getMeAddress',
        method: 'post',
        data: data
    })
}
//个人信息
export function userInfo(data) {
    return request({
        url: '/admin.user/userInfo',
        method: 'post',
        data: data
    })
}
//采购管理-国内采购-新增采购单-询价单列表
export function purchaseInternalInquiryList(data) {
    return request({
        url: '/admin/purchase.internal/inquiryList',
        method: 'post',
        data: data
    })
}
//采购管理-国内采购-新增采购单-询价单商品列表
export function purchaseInternalInquiryGoodsCode(data) {
    return request({
        url: '/admin/purchase.internal/inquiryGoodsCode',
        method: 'post',
        data: data
    })
}
//关联订单号
export function purchaseOrderList(data) {
    return request({
        url: '/admin/order.goods_order/purchaseOrderList',
        method: 'post',
        data: data
    })
}
//公共-归属列表
export function productOwnershipOther(data) {
    return request({
        url: '/admin/system_settings.product_ownership/other',
        method: 'post',
        data: data
    })
}
// 新增采购单
export function purchaseInternalAdd(data) {
    return request({
        url: '/admin/purchase.internal/add',
        method: 'post',
        data: data
    })
}
// 采购单下拉选择列表
export function internalList(data) {
    return request({
        url: `/admin/purchase.internal/internalList`,
        method: 'post',
        data
    })
}
// 我的-采购管理-国内采购-列表
export function internalIndex(data) {
    return request({
        url: `/admin/purchase.internal/index`,
        method: 'post',
        data
    })
}
// 补充发货信息页面数据
export function supplementPageData(data) {
    return request({
        url: `/admin/purchase.internal/supplementPageData`,
        method: 'post',
        data
    })
}
// 补充发货信息-提交
export function supplement(data) {
    return request({
        url: `/admin/purchase.internal/supplement`,
        method: 'post',
        data
    })
}
// 打包发货页面数据
export function sendGoodsPageData(data) {
    return request({
        url: `/admin/purchase.internal/sendGoodsPageData`,
        method: 'post',
        data
    })
}
// 打包发货-提交
export function sendGoods(data) {
    return request({
        url: `/admin/purchase.internal/sendGoods`,
        method: 'post',
        data
    })
}
// 国内采购-红冲单据
export function internalChangeRed(data) {
    return request({
        url: `/admin/purchase.internal/changeRed`,
        method: 'post',
        data
    })
}
// 本地采购-列表
export function localIndex(data) {
    return request({
        url: `/admin/purchase.local/index`,
        method: 'post',
        data
    })
}
// 本地采购-商品代码列表
export function localGoodsList(data) {
    return request({
        url: `/admin/purchase.local/goodsList`,
        method: 'post',
        data
    })
}
// 本地采购-仓库列表
export function localWarehouseList(data) {
    return request({
        url: `/admin/purchase.local/warehouseList`,
        method: 'post',
        data
    })
}
// 本地采购-供应商列表
export function localSupplierList(data) {
    return request({
        url: `/admin/purchase.local/supplierList`,
        method: 'post',
        data
    })
}
// 本地采购-新增采购单
export function localAdd(data) {
    return request({
        url: `/admin/purchase.local/add`,
        method: 'post',
        data
    })
}
// 本地采购-红冲单据
export function localChangeRed(data) {
    return request({
        url: `/admin/purchase.local/changeRed`,
        method: 'post',
        data
    })
}
// 直营工厂采购-采购单-列表
export function factoryPurchaserList(data) {
    return request({
        url: `/admin/purchase.factory_purchaser/list`,
        method: 'post',
        data
    })
}
// 直营工厂采购-采购单-商品代码列表
export function factoryPurchaserGoodsList(data) {
    return request({
        url: `/admin/purchase.factory_purchaser/goodsList`,
        method: 'post',
        data
    })
}
// 直营工厂采购-采购单-供应商列表
export function factoryPurchaserSupplierList(data) {
    return request({
        url: `/admin/purchase.factory_purchaser/supplierList`,
        method: 'post',
        data
    })
}
// 直营工厂采购-采购单-仓库列表
export function factoryPurchaserWarehouseList(data) {
    return request({
        url: `/admin/purchase.factory_purchaser/warehouseList`,
        method: 'post',
        data
    })
}
// 直营工厂采购-采购单-订单列表
export function factoryPurchaserGoodsOrderList(data) {
    return request({
        url: `/admin/purchase.factory_purchaser/goodsOrderList`,
        method: 'post',
        data
    })
}
// 直营工厂采购-采购单-新增采购单
export function factoryPurchaserAdd(data) {
    return request({
        url: `/admin/purchase.factory_purchaser/add`,
        method: 'post',
        data
    })
}
// 直营工厂采购-生产单-列表
export function produceList(data) {
    return request({
        url: `/admin/purchase.factory_produce/list`,
        method: 'post',
        data
    })
}
// 直营工厂采购-生产单-设置/修改排产时间
export function planGeneratorTime(data) {
    return request({
        url: `/admin/purchase.factory_produce/planGeneratorTime`,
        method: 'post',
        data
    })
}
// 直营工厂采购-生产单-设置组装单-原材料仓库列表
export function produceWarehouseList(data) {
    return request({
        url: `/admin/purchase.factory_produce/warehouseList`,
        method: 'post',
        data
    })
}
// 直营工厂采购-生产单-设置组装单-页面数据
export function assemblePageData(data) {
    return request({
        url: `/admin/purchase.factory_produce/assemblePageData`,
        method: 'post',
        data
    })
}
// 直营工厂采购-生产单-设置组装单-货位列表
export function produceGoodsShelvesList(data) {
    return request({
        url: `/admin/purchase.factory_produce/goodsShelvesList`,
        method: 'post',
        data
    })
}
// 直营工厂采购-生产单-设置组装单-商品代码列表
export function produceGoodsCodeList(data) {
    return request({
        url: `/admin/purchase.factory_produce/goodsCodeList`,
        method: 'post',
        data
    })
}
// 直营工厂采购-生产单-设置组装单-提交
export function assemble(data) {
    return request({
        url: `/admin/purchase.factory_produce/assemble`,
        method: 'post',
        data
    })
}
// 直营工厂采购-生产单-设置组装单-入库页面数据
export function produceStorePageData(data) {
    return request({
        url: `/admin/purchase.factory_produce/storePageData`,
        method: 'post',
        data
    })
}
// 直营工厂采购-生产单-设置组装单-入库提交
export function produceStore(data) {
    return request({
        url: `/admin/purchase.factory_produce/store`,
        method: 'post',
        data
    })
}
// 采购管理-补件采购-列表
export function supplementList(data) {
    return request({
        url: `/admin/purchase.supplement/list`,
        method: 'post',
        data
    })
}
// 采购管理-补件采购-补充发货信息页面数据
export function purchaseSupplementPageData(data) {
    return request({
        url: `/admin/purchase.supplement/supplementPageData`,
        method: 'post',
        data
    })
}
// 采购管理-补件采购-补充发货信息提交
export function purchaseSupplement(data) {
    return request({
        url: `/admin/purchase.supplement/supplement`,
        method: 'post',
        data
    })
}
// 采购管理-补件采购-供应商列表
export function purchaseSupplierList(data) {
    return request({
        url: `/admin/purchase.supplement/supplierList`,
        method: 'post',
        data
    })
}
// 采购管理-补件采购-商品代码列表
export function purchaseGoodsList(data) {
    return request({
        url: `/admin/purchase.supplement/goodsList`,
        method: 'post',
        data
    })
}
// 采购管理-补件采购-新增
export function purchaseAdd(data) {
    return request({
        url: `/admin/purchase.supplement/add`,
        method: 'post',
        data
    })
}
// 采购管理-补件采购-打包发货页面数据
export function purchaseEditInfo(data) {
    return request({
        url: `/admin/purchase.supplement/edit?id=${data.id}`,
        method: 'get'
    })
}
// 采购管理-补件采购-打包发货重新提交
export function purchaseEdit(data) {
    return request({
        url: `/admin/purchase.supplement/edit?id=${data.id}`,
        method: 'post',
        data
    })
}
// 采购管理-补件采购-打包发货页面数据
export function purchaseSendGoodsPageData(data) {
    return request({
        url: `/admin/purchase.supplement/sendGoodsPageData`,
        method: 'post',
        data
    })
}
// 采购管理-补件采购-打包发货提交
export function purchaseSendGoods(data) {
    return request({
        url: `/admin/purchase.supplement/sendGoods`,
        method: 'post',
        data
    })
}
// 报表管理-销售报表-店铺列表
export function reportOrderShopList(data) {
    return request({
        url: `/admin/report.order/shopList`,
        method: 'post',
        data
    })
}
// 报表管理-销售报表-销售订单统计-列表
export function reportOrderOrderList(data) {
    return request({
        url: `/admin/report.order/orderList`,
        method: 'post',
        data
    })
}
// 报表管理-销售报表-销售订单统计-商品销售统计
export function reportOrderGoods(data) {
    return request({
        url: `/admin/report.order/goods`,
        method: 'post',
        data
    })
}
// 报表管理-销售报表-销售订单统计-订单详情统计图表
export function reportOrderChart(data) {
    return request({
        url: `/admin/report.order/chart`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-列表
export function workOrderList(data) {
    return request({
        url: `/admin/order.work_order/list`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-仓库列表
export function workOrderWarehouseList(data) {
    return request({
        url: `/admin/order.work_order/warehouseList`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-取消量尺页面数据
export function cancelMeasurePageData(data) {
    return request({
        url: `/admin/order.work_order/cancelMeasurePageData`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-取消量尺提交
export function cancelMeasure(data) {
    return request({
        url: `/admin/order.work_order/cancelMeasure`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-量尺页面数据
export function measurePageData(data) {
    return request({
        url: `/admin/order.work_order/measurePageData`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-量尺提交
export function workOrderMeasure(data) {
    return request({
        url: `/admin/order.work_order/measure`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-配送单取货
export function workOrderPick(data) {
    return request({
        url: `/admin/order.work_order/pick`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-配送单取消配送
export function cancelDelivery(data) {
    return request({
        url: `/admin/order.work_order/cancelDelivery`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-异常配送页面数据
export function abnormalDeliveryPageData(data) {
    return request({
        url: `/admin/order.work_order/abnormalDeliveryPageData`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-异常配送提交
export function abnormalDelivery(data) {
    return request({
        url: `/admin/order.work_order/abnormalDelivery`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-配送安装单页面数据
export function workOrderdeliveryPageData(data) {
    return request({
        url: `/admin/order.work_order/deliveryPageData`,
        method: 'post',
        data
    })
}
// 订单管理-次日工单-配送安装单提交
export function workOrderDelivery(data) {
    return request({
        url: `/admin/order.work_order/delivery`,
        method: 'post',
        data
    })
}
